import { getRouters } from '@renderer/api/login'
import { defineStore } from 'pinia'
import { useUserStore } from './index'

export const useMenuStore = defineStore('menu', {
  state: () => ({
    menuList: []
  }),
  actions: {
    async getMenu() {
      const res = await getRouters(useUserStore().rolePerm)
      console.log(res)
    }
  }
})
